<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class  name="cn.firstsoft.modules.loge.domain.LogeUserCharge" table="loge_user_charge">
        <id name="id" column="id" type="integer">
            <generator class="native">
                    <param name="sequence">LOGE_USER_CHARGE_ID_SEQ</param>
            </generator>
        </id>
        <property name="year" type="integer">
            <column name="year"/>
       </property>
        <property name="month" type="integer">
            <column name="month"/>
       </property>
        <property name="ispay" type="string">
           <column name="ispay" length="50"/>
       </property>
        <property name="charge" type="double">
           <column name="charge"/>
       </property>
          <property name="days" type="integer">
           <column name="days"/>
       </property>       
        <property name="type" type="string">
            <column name="type"/>
        </property>
         <property name="userName" type="string">
            <column name="username"/>
        </property>
        <many-to-one name="logeBed" class="cn.firstsoft.modules.loge.domain.LogeBed" fetch="select">
          <column name="bed_id"/>
        </many-to-one>
        <many-to-one name="user" class="org.springside.modules.security.domain.User" fetch="select">
            <column name="user_id" />
        </many-to-one>
        <many-to-one name="logeRoomCharge" class="cn.firstsoft.modules.loge.domain.LogeRoomCharge" fetch="select">
            <column name="charge_id" />
        </many-to-one>
    </class>
    
</hibernate-mapping>
